/**
 * 
 */
package idv.takeshi.software.productline.bookstore.application.service;

import java.util.Locale;

import idv.takeshi.software.productline.bookstore.application.service.dto.CreditCardDto;
import idv.takeshi.software.productline.bookstore.domain.model.order.Order;

/**
 * A service for paying by credit card operation.
 * @author takeshi
 *
 */
public interface PayCreditCardService {
	
	/**
	 * Get order by id.
	 * @param id
	 * @return
	 */
	public Order getOrderById(Long id);
	
	/**
	 * Update credit card by given order.
	 * @param creditCardDto
	 * @param orderId
	 * @param locale
	 * @return order id
	 */
	public void updateCreditCard(CreditCardDto creditCardDto, Long orderId, Locale locale);
}
